package com.registration.mapper;

import com.registration.bean.CodeBean;
import com.registration.bean.UserBean;
import org.apache.catalina.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    UserBean loginByPassword(String phone);
    CodeBean loginByCode(String phone, Integer code);
    void insertCode(String phone,Integer code);
    Integer validCode(String phone, Integer code);
    Integer resetPassword(String phone,String password);
    Integer register(UserBean userBean);
    void lastLoginTime(String phone);
    UserBean selectUserByPhone(String phone);
    void vitiateCode(String phone);
    void invalidCode(Integer timeoutMinutes);
    Integer updateUser(UserBean userBean);
    Integer changePhone(UserBean userBean);

    UserBean selectUserById(Integer userId);
}
